


type EmojyListType = {
    name:string,
    value:string
}

export const changeEmojyFormat = (data:any):EmojyListType[]=>{
    if(Date.length === 0) return []
    let EmojyList:EmojyListType[] = []
    for(let key in data){
        let item = data[key] as any
        let obj:EmojyListType = {
            name:key,
            value:item.emoji
        }
        EmojyList.push(obj)
    }
    return EmojyList
}


export const setTokenLocal = (token:string)=>{
    token && localStorage.setItem('userToken',token)
}


export const getTokenLocal = ()=>{
    return localStorage.getItem('userToken')
}



